Learn Creating a Table in HTML 5
22-01-18 Course- HTML5-Simple
A pair of <table> and </table> tags represents an HTML table and a pair of <tr> and </tr> tags represents a row in the table. A pair of <th> and </th> tags is used to add a column heading in a column; whereas, a pair of <td> and </td> tags are added between the <table> and </table> tags as there are the number of rows in the table. In the same way, each pair of <tr> and </tr> tags contains as many pairs of <td> and </td> tags (or pairs of <th> and </th> tags for the row containing column headings) as there are the number of columns in the table.
Let’s do the following steps to create a table:
<!DOCTYPE html> <head> <title>Table</title> </head> <body bgcolor=”alicablue”> <table> <tr> <td>Manish Kumar</td> <td> 15-03-1983</td> <td>Flat No, 303, Shipra Suncity, Ghaziabad</td> </tr> <tr> <td>Rajesh Gupta </td> <td>22-02-1984</td> <td> H. No.-32, Rajendra Place, New Delhi</td> </tr> <tr> <td>Manisha Dubey </td> <td>05-02-1995</td> <td> H. No.-125, Patel Nagar, New Delhi</td> </tr> </table </body> </html>
Save the document with the name Table.html and Open on browser.